|
DX11 SET OBJECT SORT MODE
Sets the sorting mode to be used by the specified object during rendering.
Valid mode values:
- 0 - Back-to-front sorting which prioritizes state changes over depth. Should be used for opaque objects. All objects with this mode will be drawn before any with any other modes.
- 1 - Front-to-back sorting which prioritizes depth over state changes. Should be used for see-through objects to ensure they blend properly with other translucent objects behind them.
- 2 - Front-to-back sorting which prioritizes state changes over depth. Can be used with 1-bit transparent objects where it is more important to save render time than to have perfect sorting.
In conclusion, use mode 0 for opaque objects and mode 1 or 2 for transparent objects. Actually making objects transparent is up to your pixel shaders and blend states.
DX11 SET OBJECT SORT MODE object, sortMode
object Dword The object to set the sorting mode of.
sortMode Dword The sorting mode to set for the object. Must correspond to one of the values listed above.
This function does not return a value.
OBJECT Functions Menu
DX11 Function Categories
|